'''
Created on 15.06.2012

@author: lechuck
'''
import Image
import thread



class PicCutter(object):
    '''
    Object of Class cuts picture into 2^x(min.128) fragments 
    '''


    def __init__(self):
        '''
        Constructor
        '''
        self.num = 128
        __self.counter = 0
        self.cutlist = [] #hier sollen alle Elemente hinzugefuegt werden. Wie trackt man die?
        
    def cutinto(self, pic, num ):
        self.pic = pic
        self.num = num
        if __self.counter == self.num:
            pass
            
        
        
        
        
        
        
        
        
        
        
        
        
        
if __name__ == "__main__":
###Testbereich###

    
    b = True   
    def printout(a):
        print a
        global b 
        b = False
        
        
    thread.start_new_thread(printout, ("hello world", ) )
    while b:
        pass
    
